<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
namespace app\admin\model;

class AppTabbar extends \app\BaseModel
{
    protected $name = "longbing_card_tabbar";
    public function createTabbar($data)
    {
        $data["create_time"] = time();
        $result = $this->save($data);
        return !empty($result);
    }
    public function getTabbar($filter)
    {
        $result = $this->where($filter)->find();
        if(!empty($result)) {
            $result = $result->toArray();
        }
        return $result;
    }
    public function updateTabbar($filter, $data)
    {
        $data["update_time"] = time();
        $result = $this->where($filter)->update($data);
        return !empty($result);
    }
    public function delTabbar($filter)
    {
        $result = $this->destoryTabbar($filter);
        return !empty($result);
    }
    public function destoryTabbar($filter)
    {
        $result = $this->where($filter)->delete();
        return !empty($result);
    }
}

?>